package com.lhz.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.List;


/**
 * The persistent class for the goods database table.
 * 
 */
@Entity
@Table(name="goods")
@NamedQuery(name="Good.findAll", query="SELECT g FROM Good g")
public class Good implements Serializable {

	private static final long serialVersionUID = 4636037507276173626L;

	@Id
	@Column(name="goods_id")
	private int goodsId;

	private String detail;

	@Column(name="goods_name")
	private String goodsName;

	private String image;

	private BigDecimal price;

	@Column(name="qp_search")
	private String qpSearch;

	@Column(name="sale_num")
	private int saleNum;

	private String status;

	@Column(name="szm_search")
	private String szmSearch;

	//bi-directional many-to-one association to GoodsType
	@ManyToOne
	@JoinColumn(name="type_id")
	private GoodsType goodsType;
	

	public Good() {
	}

	public int getGoodsId() {
		return this.goodsId;
	}

	public void setGoodsId(int goodsId) {
		this.goodsId = goodsId;
	}

	public String getDetail() {
		return this.detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public String getGoodsName() {
		return this.goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public String getImage() {
		return this.image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public BigDecimal getPrice() {
		return this.price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public String getQpSearch() {
		return this.qpSearch;
	}

	public void setQpSearch(String qpSearch) {
		this.qpSearch = qpSearch;
	}

	public int getSaleNum() {
		return this.saleNum;
	}

	public void setSaleNum(int saleNum) {
		this.saleNum = saleNum;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSzmSearch() {
		return this.szmSearch;
	}

	public void setSzmSearch(String szmSearch) {
		this.szmSearch = szmSearch;
	}

	public GoodsType getGoodsType() {
		return this.goodsType;
	}

	public void setGoodsType(GoodsType goodsType) {
		this.goodsType = goodsType;
	}

}